<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8">
        <title>编辑课程</title>
    </head>
    <body>

        <form action="/course/edit" method="post">
            <!-- 通过隐藏表单域将 课程编号 偷偷地发送给服务端 -->
            <input type="hidden" name="id" value="{{course.id}}">
            <input type="text" name="number" value="{{course.number}}" placeholder="课程代码">
            <input type="text" name="name" value="{{course.name}}" placeholder="课程名称">
            <input type="number" name="hours" value="{{course.hours}}" placeholder="课时">
            <input type="number" name="credit" value="{{course.credit}}" placeholder="学分">
            <input type="submit" value="确定">
        </form>

        <hr>

        <p>{{message}}</p>
        
    </body>
</html>